import type { TCreateAuthActionReq } from "@/typing/authAction";
import alovaInstance from "@/utils/request";

export const queryAuthActionList = (businessKey: string) => alovaInstance.Get('/api/authorized_api', { params: { businessKey: businessKey }})
export const addAuthAction = (req: TCreateAuthActionReq) => alovaInstance.Post('/api/authorized_api', req)
export const deleteAuthAction = (id: string) => alovaInstance.Delete(`/api/authorized_api/${id}`)


